//package com.yc.web.feign;
//
//import com.yc.dto.Result;
//import com.yc.entity.Promotion;
//
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//
//@FeignClient("market-goods")
//public interface DacuControllerFeign {
//    //当调用这个接口方法时会返回另外服务中的这个方法
//    @GetMapping("/promotion/getNoBegin")
//    Promotion getNoBegin();
//
//    @RequestMapping("promotion/begin")
//    Result begin(@RequestParam int pid);
//
//    @RequestMapping("promotion/end")
//    Result end(@RequestBody Promotion promotion);
//}
